package com.gnerv.battle.boot.project.guard.mapper;

import com.gnerv.battle.boot.project.guard.model.dto.MonitorProjectDTO;
import com.gnerv.battle.boot.project.guard.model.entity.MonitorProject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MonitorProjectMapper {
    int insert(@Param(value = "monitorProject") MonitorProject monitorProject);
    int deleteByUkId(@Param(value = "ukId") String ukId);
    int updateByUkId(@Param(value = "monitorProject") MonitorProject monitorProject);
    MonitorProjectDTO selectByUkId(@Param(value = "ukId") String ukId);
    List<MonitorProjectDTO> listByName(@Param(value = "name") String name,
                                 @Param(value = "limitStart") Integer limitStart,
                                 @Param(value = "limitSize") Integer limitSize);
    int countByName(@Param(value = "name") String name);
}




